package com.goodwill.androidtest;

import android.annotation.SuppressLint;
import android.os.Build;

import androidx.annotation.RequiresApi;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class ListSort {

    @SuppressLint("NewApi")
    public static void main(String[] args) {
        Person[] arrays = new Person[]{new Person("zhangsan", 28), new Person("lisi", 27)
                , new Person("zhangsan", 28), new Person("wangwu", 28)};
        List<Person> list = Arrays.asList(arrays);
//        List<Person> stringList = list.stream().filter();
//        System.out.println("result: " + stringList);
    }
}
